package com.travel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * (TbTrain)实体类
 *
 * @author makejava
 * @since 2023-11-09 09:25:02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TbTrain implements Serializable {
    private static final long serialVersionUID = -65147950486254502L;
    @TableId(type = IdType.AUTO)
    private String trainId;

    private String trainSname;

    private String trainEname;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date trainStime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date trainEtime;
    
    private String trainNumber;
    
    private String trainSeat;
    
    private BigDecimal trainPrice;
    
    private Integer trainType;

}

